//
//  CLLocation+MZBase.m
//  MZToolkitDemo
//
//  Created by Chris Yang on 2017/2/16.
//  Copyright © 2017年 Chris Yang. All rights reserved.
//

#import "MZLocation.h"

#import "CLLocation+MZBase.h"

@implementation CLLocation(MZBase)

+ (CLLocation *)mzLocation {
    return [MZLocation mzSharedLocation];
}

+ (void)mzLocationUpdate {
    [MZLocation mzSharedLocationUpdate];
}

+ (double)mzLongitudeStringWithLocationInfo:(CLLocation *)location {
    
    CLLocationCoordinate2D tmpCoordinate = location.coordinate;
    return tmpCoordinate.longitude;
}

+ (double)mzLatitudeStringWithLocationInfo:(CLLocation *)location {
    
    CLLocationCoordinate2D tmpCoordinate = location.coordinate;
    return tmpCoordinate.latitude;
}

@end
